package thread;

import java.util.Scanner;

public class SleepDemo1 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入倒计时");
        for (int sc = scanner.nextInt(); sc > 0 ;sc--) {
            System.out.println(sc);
            try {
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
        System.out.println("节目开始");
    }
}
